package com.hsmw.schedule.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsmw.domain.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author WD
 * @version 1.0
 * @description: TODO
 * @date 2021/3/3 10:31
 */
@Data
public class DriverInfoVO extends HsmwUserDriver {

	@ApiModelProperty(value = "登陆账号")
	private String username;

	@ApiModelProperty(value = "登陆人名称")
	private String name;

	@ApiModelProperty(value = "所属租赁公司")
	private String leasingCompanyName;

	@ApiModelProperty(value = "车牌号")
	private String vehiclePlate;

	private Date queryDate;//查询日期
	private Integer orderMontyCount;//月订单
	private Integer lateOrderMontyCount;//迟到
	private Integer cancelOrderMontyCount;//取消
	private Integer volumeMontyCount;//方量

	@ApiModelProperty(value = "投诉数量")
	private Long sumComCount;

	private HsmwVehicle hsmwVehicle;

	@ApiModelProperty(value = "交通事故")
	private int trafficCount;
	@ApiModelProperty(value = "车辆故障")
	private int vehicleCount;

	private List<HsmwReport> hsmwReports;

	@ApiModelProperty(value = "司机方量")
	private Double sumDriverVolume;
	@ApiModelProperty(value = "确认方量")
	private Double sumComfirmVolume;

	@JsonFormat(pattern = "yyyy-MM",timezone="GMT+8")
	public Date getQueryDate() {
		return queryDate;
	}

	private List<HsmwDriverOrderRecord> relationOrderVos;

	@ApiModelProperty(value = "积分兑换订单")
	private List<HsmwGoodsOrder> hsmwGoodsOrders;
}
